package com.example.idachuappone.index.welcomentity;

import java.io.Serializable;
import org.json.JSONObject;

public class First implements Serializable {
    private String description;
    private String icon;
    private String price;
    private String title;

    public First parseJson(JSONObject json) {
        if (json == null) {
            return null;
        }
        if (json.has("title")) {
            this.title = json.optString("title");
        }
        if (json.has("description")) {
            this.description = json.optString("description");
        }
        if (json.has("icon")) {
            this.icon = json.optString("icon");
        }
        if (!json.has("price")) {
            return this;
        }
        this.price = json.optString("price");
        return this;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getIcon() {
        return this.icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPrice() {
        return this.price;
    }

    public void setPrice(String price) {
        this.price = price;
    }
}
